.form {
    width: 310px;
    margin: 0 auto;
    padding: 50px 0px;
    @include boxSizing(border-box);
    
    
    .top-header {
        text-align: center;
        margin-bottom: 40px;
    }
    h3 {
        font-size: 1.5em;
        margin: 0;
        font-weight: $fw-lighter;
    }
    .top-subheader {
        font-size: $fz-normal;
    }
    
    .section-header {
        padding: 5px;
        margin: 0px 0 15px;
        i {
            float: right;
            color: #CCC;
            line-height: 22px;
        }
    }
    .step-n {
        float: left;
        width: 22px;
        height: 22px;
        line-height: 22px;
        text-align: center;
        font-size: $fz-normal;
        color: #FFF;
        background-color: $ml-main-color;
        @include borderRadius(50%);
    }
    h4 {
        overflow: hidden;
        margin: 0;
        margin-left: 32px;
        font-size: 18px;
        line-height: 22px;
        font-weight: $fw-normal;
    }
    .section-subheader {
        font-size: $fz-small;
        margin-left: 32px;
        color: rgba($ml-black, 0.5);
    }
    
    .atom-header {
        padding: 5px;
    }
    h5 {
        margin: 0;
        margin-top: 10px;
        line-height: 20px;
        font-size: $fz-normal;
        font-weight: $fw-normal;
    }
    .atom-subheader {
        font-size: $fz-small;
    }
    
    .formfield {
        position: relative;
        padding: 5px;
        width: 100%;
        @include boxSizing(border-box);
        &.half {
            display: inline-block;
            width: 50%;
        }
    }
    [type='text'] {
        height: 40px;
    }
    textarea {
        height: 80px;
        resize: none;
    }
    [type='text'], textarea {
        border: 1px solid $ml-border-color;
        padding: 8px 12px;
        width: 100%;
        line-height: 18px;
        font-size: $fz-normal;
        @include boxSizing(border-box);
        @include borderRadius();
        @include placeholder(){
            color: #595959;
        }
    }
    [class*='-color-btn']{
        width: 100%;
        height: 40px;
        line-height: 40px;
    }
    .forgot-pass {
        float: right;
        display: block;
        height: 20px;
        line-height: 20px;
        padding: 5px;
        font-size: $fz-small;
        color: $ml-gray;
    }
    .edit-avatar {
        text-align: center;
        padding: 10px 0 20px;
    }
    .user-avatar {
        display: block;
        margin: 0 auto 10px;
        height: 140px;
        width: 140px;
        overflow: hidden;
        img {
            width: 100%;
        }
    }
    .img-action {
        font-size: $fz-small;
        text-decoration: underline;
    }
    .ml-slash {
        span {
            display: block;
            position: absolute;
            margin: 1px;
            width: 110px;
            height: 38px;
            line-height: 38px;
            text-align: center;
            font-size: $fz-normal;
            background-color: $ml-border-color-alt;
            
            -webkit-border-top-left-radius: 5px;
            -webkit-border-bottom-left-radius: 5px;
            -moz-border-radius-topleft: 5px;
            -moz-border-radius-bottomleft: 5px;
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
        }
        
        [type='text'] {
            padding-left: 120px;
        }
    }
    
    .remaining {
        position: absolute;
        top: 14px;
        right: 15px;
        padding: 0 3px;
        height: 20px;
        line-height: 20px;
        font-size: $fz-normal;
        color: $ml-gray;
        background-color: rgba(255,255,255, 0.5);
        @include borderRadius(10px);
    }
    
    .select {
        position: relative;
        height: 40px;
        i {
            position: absolute;
            top: 12px;
            right: 6px;
        }
        &.no-js {
            .current {
                display: none;
            }
            .options {
                opacity: 1;
            }
            i {
                display: none;
            }
        }
    }
    
    .current {
        line-height: 38px;
        border: 1px solid $ml-border-color;
        border-right-width: 20px;
        padding: 0 8px;
        width: 100%;
        font-size: $fz-normal;
        overflow: hidden;
        @include borderRadius();
        @include boxSizing(border-box);
    }
    
    .options {
        position: absolute;
        top: 0;
        padding-left: 8px;
        width: 100%;
        height: 40px;
        line-height: 38px;
        opacity: 0;
        -webkit-appearance: none;
    }
    .skip, .delete-item {
        text-align: center;
        font-size: $fz-normal;
        margin-top: 10px;
        i {
            margin: 0 10px;
        }
    }
    hr {
        margin: 25px 5px;
        border: none;
        border-top: 1px solid $ml-border-color;
    }
    .help {
        display: none;
        font-size: $fz-small;
    }
}
 

.checks {
    
    padding: 10px 5px;
    text-align: left;
    label {
        display: inline-block;
        padding: 5px 0;
        height: 20px;
        cursor: pointer;
        @extend .unselectable;
        span{
            font-size: $fz-small;
            line-height: 20px;
            vertical-align: top;
            a {
                vertical-align: top;
                color: #595959;
                text-decoration: underline;
            }
        }
    }
    
    .checkbox {
        display: inline-block;
        margin-top: 2px;
        margin-right: 5px;
        border: 1px solid $ml-border-color;
        padding: 3px;
        width: 16px;
        height: 16px;
        @include boxSizing(border-box);
    }
    
    .checked {
        height: 8px;
        width: 8px;
        opacity: 0;
        background-color: $ml-main-color;
    }
    
    [type='checkbox'], [type='radio'] {
        display: none;
        &:checked ~ .checkbox .checked {
            opacity: 1;
        }
    }
    
    &.with-input{
        padding: 0 5px;
        label {
            float: left;
            padding: 15px 0;
        }
        .formfield {
            overflow: hidden;
            width: auto;
            padding-right: 0;
        }
    }
}

.item-photos {
    padding-bottom: 25px;
}

.photo-box {
    display: inline-block;
    width: 33.33333%;
    padding: 5px;
    text-align: center;
    @include boxSizing( border-box );
    .photo {
        display: inline-block;
        border: 1px dashed $ml-border-color;
        height: 90px;
        width: 90px;
        @include boxSizing( border-box );
        @include borderRadius( 3px );
        i {
            line-height: 88px;
            color: #CCC;
        }
    }
}

.labels-box {
    overflow: hidden;
    border: 1px solid $ml-border-color;
    @include borderRadius();
    .open-labels {
        float: right;
        margin-right: 12px;
        font-size: $fz-small;
        line-height: 38px;
        color: rgba($ml-black, 0.5);
        text-decoration: underline;
    }
    p {
        margin-left: 12px;
        font-size: $fz-normal;
        line-height: 38px;
        color: rgba($ml-black, 0.5);
    }
    .sel-labels {
        padding: 10px 7px;
        li {
            display: inline-block;
            font-size: $fz-small;
            line-height: 20px;
            margin: 0 5px;
        }
    }
}


.alt-color {
    .checks {
        .checked {
            background-color: $ml-secondary-color;
        }
    }
    &.form {
        .step-n {
            background-color: $ml-secondary-color;
        }
    }
}

.fb-connect {
    margin: 5px;
    margin-bottom: 30px;
    border: none;
    width: 300px;
    height: 60px;
    line-height: 60px;
    font-size: 18px;
    font-weight: $fw-lighter;
    color: #FFF;
    background-color: $fb-color;
    @include borderRadius();
    &:hover {
        background-color: darken($fb-color, 10%);
    }
}